package com.lei2j.factory;

public class ChicagoVeggiePizza implements Pizza {
	
	private PizzaIngredientFactory pizzaIngredientFactory;
	
	public ChicagoVeggiePizza(PizzaIngredientFactory pizzaIngredientFactory){
		this.pizzaIngredientFactory = pizzaIngredientFactory;
	}

	@Override
	public void prepare() {
		pizzaIngredientFactory.createCheese();
		pizzaIngredientFactory.createClam();
		pizzaIngredientFactory.createPepperoni();
		pizzaIngredientFactory.createSauce();
		System.out.println("prepare chicago veggie");
	}

	@Override
	public void bake() {
		System.out.println("bake chicago veggie");
	}

	@Override
	public void cut() {
		System.out.println("cut chicago veggie");
	}

	@Override
	public void box() {
		System.out.println("box chicago veggie");
	}
	

}
